<template>
  <div>
     <el-menu :router="true">
        <AsideMenuItem v-for="(item,index) in authMenus" :key="index" :item="item"></AsideMenuItem>
     </el-menu>
  </div>
</template>

<script lang='ts' setup>
import {onMounted} from 'vue'
import {storeToRefs} from 'pinia'
import useAuthStore from '@/store/modules/useAuthStore';
import AsideMenuItem from '@/views/AsideMenuItem.vue';
const store=useAuthStore()
const {authMenus}=storeToRefs(store)
onMounted(()=>{
    store.getAuthMenuAsync()
    store.generatorRouteAsync()
})
</script>

<style lang='scss' scoped>
</style>